package com.itheima.d4_method;

/**
 * @author Dushaohua
 * @date 2024/4/15 16:15
 */
public class Test {
    public static void main(String[] args) {

        Student s1 = new Student();
        s1.name = "小明";
        double num1 = s1.getScore(100,89);

        Student s2 = new Student();
        s2.name = "小亮";
        double num2 = s2.getScore(98,69);

        Student s3 = new Student();
        s3.name = "小美";
        double num3 = s3.getScore(94,86);

        System.out.println("姓名:" + s1.name + " 总成绩：" + num1);
        System.out.println("姓名:" + s2.name + " 总成绩：" + num2);
        System.out.println("姓名:" + s3.name + " 总成绩：" + num3);
    }
}
